package com.basker.pisces.domain.value;

/**
 * @author hangwen
 * @date 2020/11/30
 */
public class CommonValueObject implements IValueObject {

    private final Object value;

    public CommonValueObject(final Object value) {
        this.value = value;
    }

    @Override
    public Object getDataValue() {
        return value;
    }

    @Override
    public String getPresentValue() {
        return value != null ? value.toString() : "";
    }

    @Override
    public boolean isEmpty() {
        return value == null;
    }
}
